﻿<%@ Page Title="" Language="C#" MasterPageFile="~/FilStartUps.Master" AutoEventWireup="true"
    CodeBehind="SearchResult.aspx.cs" Inherits="FilStartUps.Search" %>

<%@ Import Namespace="FilStartUps.Helper" %>
<%@ Register Src="Controls/FilStartUps_PageNav.ascx" TagName="FilStartUps_PageNav"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainNav" runat="server">
    <uc1:FilStartUps_PageNav ID="FilStartUps_PageNav1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="BodyHolder" runat="server">
    <table width="100%">
        <tr>
            <td style="width: 30%;">
            </td>
            <td style="text-align: center; width: 40%;padding-top:20px">
                <h1 style="text-align: center; color: Black; font-family: Tahoma,Verdana,Arial;">
                    <asp:Literal runat="server" ID="posttitle">Search Result</asp:Literal>
                    </h1>
            </td>
            <td style="text-align: right; width: 30%;">
        </tr>
    </table>
    <p style="text-align: left; color: White; clear: none; float: left; width: 40%">
        <asp:Literal ID="litSearchText" runat="server"></asp:Literal>
    </p>
    <p style="text-align: right; color: White; clear: none; float: right; width: 40%">
        <asp:Literal ID="litPageText" runat="server"></asp:Literal>
    </p>
    <p class="clear" style="height: 1px">
        &nbsp;</p>
    <asp:DataList runat="server" RepeatLayout="Table" RepeatColumns="1" ID="dlsearchresult">
        <ItemTemplate>
            <div class="grid_3">
                <asp:Image ID="Image1" runat="server" ImageUrl='<%# "../FilStartUps_Images.ashx?id=" + Eval("postidPK") %>'
                    Width="150px" Height="90px" />
            </div>
            <div class="grid_8">
                <asp:Label ID="postidPK" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "postidPK") %>'
                    Visible="false">
                </asp:Label>
                <h1 style="font-size: 18px; font-weight: bold;">
                    <asp:LinkButton ID="posttitle" runat="server" CommandName="SelectRow" Text='<%# DataBinder.Eval(Container.DataItem, "posttitle") %>'>
                    </asp:LinkButton>
                    <hr />
                </h1>
                <div style="padding-bottom: 30px">
                    <asp:Label runat="server" ID="postdatecreated" Text='<%#  ConvertDate(DataBinder.Eval(Container.DataItem, "datecreated").ToString()) %>'>
                    </asp:Label>
                    <br />
                    <asp:Literal ID="postdescription" runat="server" Text='<%# HtmlRemoval.StripTagsCharArray(Truncate(DataBinder.Eval(Container.DataItem, "postdescription").ToString())) %>'>
                    </asp:Literal>
                </div>
            </div>
            </div>
        </ItemTemplate>
    </asp:DataList>
    <div align="left" style="padding: 10px; margin-left: 120px;">
        <asp:LinkButton ID="lnkbPrev" runat="server" OnClick="lnkbPrev_Click">Prev</asp:LinkButton>
        &nbsp;&nbsp;
        <asp:LinkButton ID="lnkbNext" runat="server" OnClick="lnkbNext_Click">Next</asp:LinkButton>
    </div>
    <asp:Literal ID="litPageNumber" runat="server"></asp:Literal>
    <hr />
</asp:Content>
